home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
TWIN0944.ZIP
/
TLSWITCH.TXT
< prev
next >
Wrap
Text File
|
1994-06-25
|
3KB
|
103 lines
TLSWITCH.EXE Reads The START/END Times in TLSWITCH.DAT And Exits With A
Errorlevel For BATCH Files
(Twin Line Also Reads The START/END Times in TLSWITCH.DAT And Will Exit
When The Current Time Is NOT Between START & END)
ERRORLEVELS
1 Current Time IS Between START & END
2 Current Time IS NOT Between START & END
Changing Times
Just EDIT TLSWITCH.DAT
1st Line is START Time
2nd Line is END Time
If You Wanted TwinLine To RUN From 6:00am to 10:30pm TLSWITCH.DAT Would
Look Like:
600
2230
You Will Also Have To Set A EVENT (In the Mailer at START Time (ie 6:00am)
So it EXITS And Runs RUN.BAT (TWiN LiNE Batch File)
BATCH FILES
You Will Two Batch Files For TWiN LiNE And A MAILER. TLSWITCH Must
Be Run Before The Mailer & Twin Line.
TLSWITCH WAIT
If You DON'T Want To Use A Mailer And Just Want To Run Twin Line
Lets Say 12Hrs A Day, Use The WAIT Option In TLSWITCH
(ie TLSWITCH WAIT), TlSwitch will now wait until The Current Time
Is Between START & END. You Will Also Only Need RUN.BAT.
Demo OF RUN.BAT (Batch For TWiN LiNE)
------------START Of RUN.BAT------------------------
@ECHO OFF
:Start
rem --- We end up here after every BBS call
@ECHO OFF
TLSWITCH
if errorlevel 1 goto LoadTL
RUN2.BAT
:LoadTL
Twin A-Z
@Echo off
rem --- Check Errorlevels From TWiN LiNE
if errorlevel 100 goto end
if errorlevel 20 goto onceaday
if errorlevel 2 goto loadbbs
if errorlevel 1 goto local
if errorlevel 0 goto start
goto end
:onceaday
Onceaday.bat
@ECHO OFF
goto start
:loadbbs
Load BBS software for Remote User (TWiN LiNE Writes TLRUNBBS.BAT)
call tlrunbbs.bat
@ECHO OFF
goto start
:local
Load BBS software in Local Mode (TWiN LiNE Writes TLRUNBBS.BAT)
call tlrunbbs.bat
@ECHO OFF
goto start
:END
---------------------END Of Run.Bat-----------------
Demo OF RUN2.BAT (Batch For Mailer)
------------START Of RUN2.BAT------------------------
@echo off
rem --- We Must end up here after every BBS call
:loop
TLSWITCH
if errorlevel 2 goto loadFD
RUN.BAT
:LoadFD
rem --- Load Mailer Here
rem ---Please Read Mailer Manual For ErrorLevels/Batch File
rem ---setup ect..
---------------------END Of Run2.Bat-----------------
Any QUESTIONS??.. CALL DARK ZONE BBS (063)72-1260 & Give 1 Ring Signal
(Running TWiN LiNE)
NETMAiL: ITCnet 85:700/153
FIDOnet 3:623/683